import request from "@/utils/request";

// 查询标准清单
export function listDataBzqd(query) {
  return request({
    // url: '/base/standardTenderSheet/listData',
    url: "/base/standardSheet/list",
    method: "get",
    params: query
  });
}
// 新增合同清单详情
export function addBaContractSheets(data) {
  return request({
    url: "/cm/baContractSheets/addBatch",
    method: "post",
    data: data
  });
}

// 查询合同清单详情列表
export function listBaContractSheets(query) {
  return request({
    url: "/cm/baContractSheets/listData",
    method: "get",
    params: query
  });
}

// 查询合同清单详情详细
export function getBaContractSheets(sheetId) {
  return request({
    url: "/cm/baContractSheets/" + sheetId,
    method: "get"
  });
}

// 修改合同清单详情
export function updateBaContractSheets(data) {
  return request({
    url: "/cm/baContractSheets",
    method: "put",
    data: data
  });
}
// 修改合同清单批量修改
export function editBatchBaContractSheets(data) {
  return request({
    url: "/cm/baContractSheets/editBatch",
    method: "put",
    data: data
  });
}

// 删除合同清单详情
export function delBaContractSheets(sheetId) {
  return request({
    url: "/cm/baContractSheets/" + sheetId,
    method: "delete"
  });
}
// 查询合同清单审批状态
export function getApprovalStatus(query) {
  return request({
    url: "/cm/baContractSheets/getApprovalStatus",
    method: "get",
    params: query
  });
}
// 报表发起审批前校验
export function checkContractSheets(query) {
  return request({
    url: "/cm/baContractSheets/check",
    method: "get",
    params: query
  });
}
